
import leftopic from '@/components/leftopic'
import loading from '@/components/loading'
export default {
  data(){
    return{
      mymenu1:{
        one:'蟹黄菜心',
        two:'红烧划水',
        three:'荠菜野鸭片'
      },
      mymenu2:{
        one:'塔香磨菇牛排',
        two:'果酱夹心饼',
        three:'培根金针菇卷'
      }
    }
  },
  methods: {
    randomeun1:function(){
      var theArray=new Array();
      theArray[0]="家常海参";
      theArray[1]="翡翠豆腐羹";
      theArray[2]="荠菜野鸭片";
      theArray[3]="奶油花菜";
      theArray[4]="鸡块炖水鱼";
      theArray[5]="八宝鸭";
      theArray[6]="雪梨鸡片";
      theArray[7]="栗子烧鸡块";
      theArray[8]="虾籽茭白";
      theArray[9]="蟹黄菜心";
      function ranFun()
      {
        return parseInt(Math.random()*10);
      }
      //console.log(theArray[ranFun()]);
      this.mymenu1.one=theArray[ranFun()];
      this.mymenu1.two=theArray[ranFun()];
      this.mymenu1.three=theArray[ranFun()];
    },
    randomeun2:function(){
      var theArray=new Array();
      theArray[0]="烤牛肉";
      theArray[1]="菠菜三文鱼饭团 ";
      theArray[2]="咖喱鸡饭";
      theArray[3]="芒果芝士冻";
      theArray[4]="香烤鸡腿卷";
      theArray[5]="果酱夹心饼";
      theArray[6]="塔香磨菇牛排";
      theArray[7]="黑椒意粉";
      theArray[8]="培根金针菇卷";
      theArray[9]="鸡肉蔬菜奶酪焗饭";
      function ranFun()
      {
        return parseInt(Math.random()*10);
      }
      //console.log(theArray[ranFun()]);
      this.mymenu2.one=theArray[ranFun()];
      this.mymenu2.two=theArray[ranFun()];
      this.mymenu2.three=theArray[ranFun()];
    }
  },
  components:{
    leftopic,
    loading
  }
}
